<html>
<head>
</head>
<body>
<div class="row">
    <div class="col-sm-12">
        <div class="animated fadeIn">
            <form action="/upms/user/edit" method="post" class="form-horizontal" id="userEditForm" data-name="编辑用户">
                <div class="col-sm-4">
                    <div class="ibox float-e-margins">
                        <div class="ibox-title">
                            <h5>用户基本信息</h5>
                            <div class="ibox-tools">
                                <a class="collapse-link">
                                    <i class="fa fa-chevron-up"></i>
                                </a>
                            </div>
                        </div>
                        <div class="ibox-content">
                            <input name="userId" type="hidden">
                            <input name="orgId" type="hidden">
                            <input name="deptIds" type="hidden">
                            <input name="postIds" type="hidden">
                            <input name="roleIds" type="hidden">
                            <div class="form-group">
                                <label class="col-sm-3 control-label" for="userName">用户名：<span
                                        class="required text-danger">*</span></label>

                                <div class="col-sm-8">
                                    <input type="text" class="form-control" placeholder="" name="userName"
                                           id="userName">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label" for="realName">真实姓名：<span
                                        class="required text-danger">*</span></label>

                                <div class="col-sm-8">
                                    <input type="text" class="form-control" placeholder="" name="realName"
                                           id="realName">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label" for="gender">性别：</label>

                                <div class="col-sm-8">
                                    <select class="form-control" placeholder="" name="gender" id="gender">
                                        <#list gender as g>
                                        <option value="${g.getCode()}">${g.getName()}</option>
                                    </#list>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label" for="email">邮箱：<span class="required text-danger">*</span></label>

                                <div class="col-sm-8">
                                    <input type="email" class="form-control" placeholder="" name="email" id="email">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">联系电话：</label>

                                <div class="col-sm-8">
                                    <input type="text" class="form-control" placeholder="" name="phone" id="phone">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label" for="status">用户状态：</label>

                                <div class="col-sm-8">
                                    <div id="sw-content">
                                        <input type="checkbox" name="status" id="status" checked value="">
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label" for="post">岗位：</label>

                                <div class="col-sm-8">
                                    <select class="chosen-select form-control" id="post"/>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-sm-8">
                                    <input type="hidden">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label" for="remark">备注：</label>
                                <div class="col-sm-8">
                                    <textarea type="text" class="form-control" placeholder="" name="remark" id="remark" style="resize:none;"></textarea>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-sm-offset-3 col-sm-8">
                                    <button class="btn btn-sm btn-primary" type="submit">保存</button>
                                    <button class="btn btn-sm btn-primary" type="reset">重置</button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-sm-8">
                    <div class="col-sm-4">
                        <div class="ibox float-e-margins">
                            <div class="ibox-title">
                                <h5>机构部门信息</h5>
                                <div class="ibox-tools">
                                    <a class="collapse-link">
                                        <i class="fa fa-chevron-up"></i>
                                    </a>
                                </div>
                            </div>
                            <div class="ibox-content">
                                <div id="deptTree" class="ztree"></div>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-8">
                        <div class="ibox float-e-margins">
                            <div class="ibox-title">
                                <h5>角色信息</h5>
                                <div class="ibox-tools">
                                    <a class="collapse-link">
                                        <i class="fa fa-chevron-up"></i>
                                    </a>
                                </div>
                            </div>
                            <div class="ibox-content">
                                <table id="roleGrid"></table>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-12">
                        <div class="ibox float-e-margins">
                            <div class="ibox-title">
                                <h5>角色资源信息</h5>
                                <div class="ibox-tools">
                                    <a class="collapse-link">
                                        <i class="fa fa-chevron-up"></i>
                                    </a>
                                </div>
                            </div>
                            <div class="ibox-content">
                                <table id="resourceGrid"></table>
                            </div>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>

<script src="${ctx}/public/js/business/Resource.js"></script>
<script src="${ctx}/public/js/business/Organization.js"></script>
<script src="${ctx}/public/js/business/Role.js"></script>
<script src="${ctx}/public/js/business/User.js"></script>
</body>
</html>